package com.allwees.core.elasticsearch.configuration;

import lombok.Data;
import org.springframework.boot.autoconfigure.elasticsearch.rest.RestClientProperties;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import java.time.Duration;

@Data
@Configuration
@ConfigurationProperties(prefix = "spring.elasticsearch.rest")
public class ElasticsearchRestProperties extends RestClientProperties {

    private boolean sslEnabled = false;

    private String sslKeystorePath;

    private String sslKeystorePassword;

    private Duration connectionTimeout;

    private Duration readTimeout;
}
